Timm Bäder [Sat, 17 Jun 2017 05:14:38 +0000 (07:14 +0200)]
checkmenuitem: Fix indicator allocation
base point is the menu item's content allocation now.
Timm Bäder [Fri, 16 Jun 2017 16:16:27 +0000 (18:16 +0200)]
range: Fix slider allocation
Timm Bäder [Fri, 16 Jun 2017 16:08:04 +0000 (18:08 +0200)]
widget: Add new allocation accessors
Timm Bäder [Fri, 16 Jun 2017 13:30:52 +0000 (15:30 +0200)]
Remove GtkCssCustomGadget
Unused.
Timm Bäder [Fri, 16 Jun 2017 13:27:08 +0000 (15:27 +0200)]
entry: Replace progress gadget with a progressbar
Timm Bäder [Fri, 16 Jun 2017 13:22:59 +0000 (15:22 +0200)]
scrollbar: notify when setting the orientation
Timm Bäder [Fri, 16 Jun 2017 13:22:04 +0000 (15:22 +0200)]
GtkAccelLabel: Add use-underline property
Timm Bäder [Fri, 16 Jun 2017 12:33:58 +0000 (14:33 +0200)]
spinbutton: Fix property notification
Timm Bäder [Fri, 16 Jun 2017 12:31:54 +0000 (14:31 +0200)]
cssprovider test: Remove style property test case
It's getting harder and harder to find a dummy style property to use
here, so remove the test case since style properties should be going
away soon anyway.
Timm Bäder [Fri, 16 Jun 2017 09:19:52 +0000 (11:19 +0200)]
entry: Use images for icons
Timm Bäder [Fri, 16 Jun 2017 09:19:44 +0000 (11:19 +0200)]
image: Add private _get_definition
Timm Bäder [Thu, 15 Jun 2017 15:04:42 +0000 (17:04 +0200)]
label: Fix layout snapshot coordinates
No need to convert anything to "window coordinates" anymore.
Timm Bäder [Thu, 15 Jun 2017 14:03:08 +0000 (16:03 +0200)]
scrolledwindow: Fix scrollbar allocations
Use the content size everywhere. Fixes scrollbar positions with padding
and/or css borders applied to the scrolledwindow.
Timm Bäder [Thu, 15 Jun 2017 10:49:31 +0000 (12:49 +0200)]
scrolledwindow: Fix on_scrollbar check
The event widget is always the toplevel window, so use the event target
and check the GtkScrollbar ancestor.
Timm Bäder [Thu, 15 Jun 2017 10:49:18 +0000 (12:49 +0200)]
range: Use a gizmo as slider
No need for this to be a GtkIcon.
Timm Bäder [Thu, 15 Jun 2017 08:28:58 +0000 (10:28 +0200)]
entry: get_layout_location coords are already content relative
Timm Bäder [Wed, 14 Jun 2017 16:30:19 +0000 (18:30 +0200)]
image: Fold gtk_image_reset into only caller
Timm Bäder [Tue, 6 Jun 2017 09:00:46 +0000 (11:00 +0200)]
widget: Avoid some type checks in snapshot_child
Timm Bäder [Mon, 5 Jun 2017 09:48:13 +0000 (11:48 +0200)]
menu: Remove bin_window and view_window
Timm Bäder [Mon, 5 Jun 2017 09:25:21 +0000 (11:25 +0200)]
modelmenuitem: Fix type checking assertions
GtkAccelLabel is not a GtkLabel anymore
Timm Bäder [Mon, 5 Jun 2017 09:22:11 +0000 (11:22 +0200)]
iconview: Stop drawing a background
GtkWidget is doing that automatically now.
Timm Bäder [Sun, 4 Jun 2017 18:13:26 +0000 (20:13 +0200)]
sizerequest: Assert that min_size >= 0
This should generally be true, so remove the checks from gtkbox.c and
move it into gtksizerequest.c
Timm Bäder [Sun, 4 Jun 2017 16:57:18 +0000 (18:57 +0200)]
revealer: Fix DOWN and RIGHT transition types
Since we lost the bin_window, we now have to allocate the child widget
at a negative position when using these transition types.
Timm Bäder [Sun, 4 Jun 2017 16:33:08 +0000 (18:33 +0200)]
revealer: Request child size for NONE transition type
Previously, we would request a size of 0×0 when the transition type was
NONE and the child un-revealed, making the revealer in this case a
gtk_widget_set_visible replacement. Instead, to the exact same thing we
do in the CROSSFADE case and request the child size instead. This also
keeps the revealer from under allocating the child when the transition
type is set to NONE.
Timm Bäder [Sun, 4 Jun 2017 15:30:40 +0000 (17:30 +0200)]
stack: Remove bin_window
Timm Bäder [Sun, 4 Jun 2017 15:08:05 +0000 (17:08 +0200)]
revealer: Remove bin_window
Timm Bäder [Sun, 4 Jun 2017 15:03:17 +0000 (17:03 +0200)]
toolitemgroup: Remove child window
Timm Bäder [Sat, 3 Jun 2017 12:38:56 +0000 (14:38 +0200)]
popover: Remove useless if case
rect is not nullable, so stop checking if it is NULL and instead add a
g_return_val_if_fail guard.
Timm Bäder [Sat, 3 Jun 2017 09:16:54 +0000 (11:16 +0200)]
widget: "fix" event and invalidation coordinates
Timm Bäder [Fri, 2 Jun 2017 20:08:22 +0000 (22:08 +0200)]
testwidgetfocus: Drop SPACING constant in favor for CSS
This makes it easier to test various other properties of widgets.
Timm Bäder [Fri, 2 Jun 2017 16:24:38 +0000 (18:24 +0200)]
window: Remove dead code
This case can never happen since GtkWindow instances never have a
parent.
Timm Bäder [Tue, 30 May 2017 18:06:20 +0000 (20:06 +0200)]
image: Fix snapshot position
Timm Bäder [Tue, 30 May 2017 15:44:05 +0000 (17:44 +0200)]
entry: Fix text position
Timm Bäder [Tue, 30 May 2017 14:20:01 +0000 (16:20 +0200)]
widget: Adapt translate_coordinates to coordinate changes
Timm Bäder [Tue, 30 May 2017 11:32:37 +0000 (13:32 +0200)]
scrolledwindow: fix scrollbar allocation
Timm Bäder [Fri, 26 May 2017 19:00:12 +0000 (21:00 +0200)]
paned: Remove useless queue_resize calls
This is done by gtk_widget_unparent nowadays
Timm Bäder [Fri, 26 May 2017 18:49:10 +0000 (20:49 +0200)]
paned: Reimplement handle dragging
Timm Bäder [Sat, 27 May 2017 15:30:01 +0000 (17:30 +0200)]
icon: Stop offset'ing in snapshot
The snapshot is not offset to the content allocation when ->snapshot is
called.
Timm Bäder [Sat, 27 May 2017 15:31:05 +0000 (17:31 +0200)]
frame: Fix child allocation
Don't add the parent's allocation from gtk_widget_get_allocation
Timm Bäder [Sat, 27 May 2017 13:19:44 +0000 (15:19 +0200)]
widget: Make allocations parent-content-allocation relative
Timm Bäder [Sat, 27 May 2017 12:39:54 +0000 (14:39 +0200)]
widget: Remove queue_draw_child vfunc
Timm Bäder [Sat, 27 May 2017 10:41:30 +0000 (12:41 +0200)]
viewport: Remove bin_window
Timm Bäder [Sat, 27 May 2017 07:47:56 +0000 (09:47 +0200)]
scrolledwindow: Properly remove scrollbars
Instead of keeping an extra ref, then unparent+destroy+unref, don't keep
an extra ref and just unparent the scrollbar when appropriate.
Timm Bäder [Fri, 26 May 2017 10:51:37 +0000 (12:51 +0200)]
listbox: Remove manual prelight row management
This works automatically now.
Timm Bäder [Fri, 26 May 2017 10:48:13 +0000 (12:48 +0200)]
switch: Remove manual PRELIGHT code
This works automatically now
Timm Bäder [Fri, 26 May 2017 10:13:43 +0000 (12:13 +0200)]
listbox: Remove view_window
Timm Bäder [Thu, 25 May 2017 15:34:23 +0000 (17:34 +0200)]
scrollbar: Add new API to gtk4-sections.txt
and update the css node docs
Timm Bäder [Thu, 25 May 2017 15:15:38 +0000 (17:15 +0200)]
bin: Drop priv pointer
Timm Bäder [Thu, 25 May 2017 06:40:00 +0000 (08:40 +0200)]
filechooserwidget: Fix save widgets
Now that GtkFileChooserWidget is not a GtkBox anymore, we can't just
gtk_box_pack_start child widgets to it.
Timm Bäder [Wed, 24 May 2017 16:49:57 +0000 (18:49 +0200)]
Remove some unneeded includes
Timm Bäder [Wed, 24 May 2017 14:21:45 +0000 (16:21 +0200)]
inspector: Allow picking children of GtkWidget classes
Timm Bäder [Wed, 24 May 2017 13:39:39 +0000 (15:39 +0200)]
accellabel: Inherit from GtkWidget
Use a box and 2 labels.
Timm Bäder [Wed, 24 May 2017 09:10:26 +0000 (11:10 +0200)]
textview: Use ::snapshot
Timm Bäder [Wed, 24 May 2017 08:24:13 +0000 (10:24 +0200)]
testtooltips: Add static tooltip
Just a widget class emulating the tooltip look by calling itself
"tooltip" in the css node tree and adding the .background style class.
Timm Bäder [Wed, 24 May 2017 08:24:00 +0000 (10:24 +0200)]
tooltipwindow: Remove unused define
Timm Bäder [Wed, 24 May 2017 08:00:15 +0000 (10:00 +0200)]
listbox: Remove rows directly when binding model
Instead of hopping through 7 different functions to do that, just
remove all rows directly. This also mean we'll only remove rows and not
other children that've been added like placeholders.
Timm Bäder [Tue, 23 May 2017 13:05:32 +0000 (15:05 +0200)]
box: Use widget children list in count_expand_children
It's still less dereferencing than the previous code.
Timm Bäder [Mon, 22 May 2017 12:15:39 +0000 (14:15 +0200)]
scale: Fix css node ordering and expected results
Add :dir(ltr) where expected, i.e. everywhere we now have a widget but
had a gadget before.
Also, fix the expected output to expect mark subnodes in the order
specified in the GtkScale does, i.e.
├── mark
├── [label]
╰── indicator
for marks at the top of the scale and
├── mark
├── indicator
╰── [label]
For marks at the bottom of the scale.
Timm Bäder [Mon, 22 May 2017 11:21:09 +0000 (13:21 +0200)]
spinbutton: Add docs for new public API
Timm Bäder [Mon, 22 May 2017 09:37:04 +0000 (11:37 +0200)]
widget: Draw widget clips with GEOMETRY debugging
Timm Bäder [Sun, 21 May 2017 19:41:03 +0000 (21:41 +0200)]
image: Offset rendering to the content allocation
Timm Bäder [Sun, 21 May 2017 19:13:57 +0000 (21:13 +0200)]
widget: Bring back layout debugging
Timm Bäder [Sun, 21 May 2017 17:02:33 +0000 (19:02 +0200)]
paned: Replace handle gadget with widget
Timm Bäder [Sat, 20 May 2017 17:32:16 +0000 (19:32 +0200)]
widget: Bring resize and baseline debug rendering back
Timm Bäder [Sat, 20 May 2017 13:04:03 +0000 (15:04 +0200)]
range: Fix click detection in slider trace
The x/y/ coordinates are relative to the range allocation, so take that
into account.
Timm Bäder [Sat, 20 May 2017 12:18:11 +0000 (14:18 +0200)]
treeview: default to width_changed = TRUE
Checking the given GtkAllocation against the current allocation insize
::size-allocate doesn't really work anymore. They are only different if
the content allocation (the one passed) and the widget allocation (the
current one) are different, so e.g. when the widget has padding >0
applied.
Timm Bäder [Sat, 20 May 2017 12:08:42 +0000 (14:08 +0200)]
icon: Render at content position
Since we get offset automatically to the widget allocation before
->snapshot is called, we still have to offset the difference to the
position of the content allocation.
Timm Bäder [Fri, 19 May 2017 12:41:45 +0000 (14:41 +0200)]
switch: Use a gizmo as slider
The button was jut a stop-gap solution before GtkGizmo existed.
Timm Bäder [Thu, 18 May 2017 10:15:31 +0000 (12:15 +0200)]
testheightforwidth: Remove GtkBox fill/expand usage
Timm Bäder [Thu, 18 May 2017 08:09:39 +0000 (10:09 +0200)]
button: Don't care about sizing if no child is set
We don't need to care in this case since the default values should
always be assumed to be 0, and setting a baseline of 0 is just wrong
when orientation == HORIZONTAL, it should be -1 (or unset).
Timm Bäder [Wed, 17 May 2017 16:05:22 +0000 (18:05 +0200)]
Remove GtkBoxGadget
Now unused
Timm Bäder [Tue, 16 May 2017 07:45:53 +0000 (09:45 +0200)]
Remove GtkBuiltinIcon
Now unused.
Timm Bäder [Thu, 15 Jun 2017 18:54:14 +0000 (20:54 +0200)]
checkbutton: stop using gadgets
Timm Bäder [Tue, 16 May 2017 07:40:45 +0000 (09:40 +0200)]
modelbutton: Use GtkIcon as indicator
Timm Bäder [Thu, 15 Jun 2017 19:14:25 +0000 (21:14 +0200)]
icon: Add _set_css_name back
Timm Bäder [Wed, 17 May 2017 07:14:40 +0000 (09:14 +0200)]
colorswatch: Replace IconHelper with GtkImage
Timm Bäder [Mon, 15 May 2017 13:01:29 +0000 (15:01 +0200)]
widget: Consider css margins when setting clip
This is optional for positive margins as they just increase the widget
allocation. However, with negative css margins, the allocation is
smaller than the clip.
This fixes scale sliders leaving a small trail behind.
Timm Bäder [Mon, 15 May 2017 12:07:03 +0000 (14:07 +0200)]
adwaita: Fix typo
marks_lenght -> marks_length
Timm Bäder [Sun, 14 May 2017 06:58:03 +0000 (08:58 +0200)]
container: GtkActionBar is not a special container anymore
Timm Bäder [Sun, 14 May 2017 06:05:55 +0000 (08:05 +0200)]
progressbar: Apply style classes when setting direction
We might have to change .top to .left etc. when changing the direction
of the progressbar.
Timm Bäder [Sun, 14 May 2017 05:54:25 +0000 (07:54 +0200)]
css nodes: Fix expander test case
Vertical box subnode.
Timm Bäder [Sun, 14 May 2017 05:51:29 +0000 (07:51 +0200)]
css nodes: Fix entries test case
Spinbuttons now have a subnode box and the undershoot nodes belong to
the entry node.
Timm Bäder [Sat, 13 May 2017 20:05:27 +0000 (22:05 +0200)]
spinbutton: Use 0 as default for (max-)width-chars
This mimics the old spinbutton size request better.
Timm Bäder [Sat, 13 May 2017 16:56:20 +0000 (18:56 +0200)]
range: Emit value-changed when setting the adjustment
After all, the value kind of just changed.
Timm Bäder [Sat, 13 May 2017 14:13:22 +0000 (16:13 +0200)]
scale: Replace all gadgets with widgets
Timm Bäder [Sat, 13 May 2017 17:15:40 +0000 (19:15 +0200)]
scale: Remove draw_value vfunc
Unused.
Timm Bäder [Sat, 13 May 2017 12:36:29 +0000 (14:36 +0200)]
range: Return trough allocation from _get_range_rect
Timm Bäder [Sat, 13 May 2017 09:38:30 +0000 (11:38 +0200)]
notebook: Replace all gadgets with widgets
Timm Bäder [Fri, 12 May 2017 09:46:26 +0000 (11:46 +0200)]
container: Propagate child properties if parent != container
This can happen when e.g. GtkNotebook adds the child page widgets not
directly inside the notebook, but inside the inner GtkStack.
Timm Bäder [Thu, 11 May 2017 20:08:19 +0000 (22:08 +0200)]
adwaita: Fix notebook theming
the header and the stack nodes are now inside a box node.
Timm Bäder [Thu, 11 May 2017 19:52:18 +0000 (21:52 +0200)]
gizmo: Unparent all child widgets in finalize
Timm Bäder [Thu, 11 May 2017 19:49:37 +0000 (21:49 +0200)]
gizmo: Chain up in snapshot if no snapshot func given
I.e. when gizmo users just want to draw child widgets anyway and don't
do any custom drawing, they can simply pass NULL.
Timm Bäder [Thu, 11 May 2017 06:50:49 +0000 (08:50 +0200)]
notebook: Replace tab gadget with GtkGizmo
Timm Bäder [Thu, 11 May 2017 06:09:14 +0000 (08:09 +0200)]
notebook: Replace tabs gadget with GtkGizmo
Timm Bäder [Thu, 11 May 2017 05:48:46 +0000 (07:48 +0200)]
notebook: Replace arrow gadgets with GtkIcons
Timm Bäder [Thu, 11 May 2017 05:48:00 +0000 (07:48 +0200)]
icon: Add _set_image
Timm Bäder [Wed, 10 May 2017 20:13:16 +0000 (22:13 +0200)]
menu: Replace arrow gadgets with GtkIcons
Timm Bäder [Wed, 10 May 2017 19:22:42 +0000 (21:22 +0200)]
checkmenuitem: Replace indicator gadget with GtkIcon
Timm Bäder [Wed, 10 May 2017 19:22:21 +0000 (21:22 +0200)]
icon: Only draw in content allocation
Timm Bäder [Wed, 10 May 2017 18:55:38 +0000 (20:55 +0200)]
menuitem: Replace arrow gadget with GtkIcon